package com.agy.filemanager.service.impl;

import com.agy.filemanager.entity.DcDocProjectStepType;
import com.agy.filemanager.entity.TreeModel;
import com.agy.filemanager.mapper.DcDocProjectStepTypeDao;
import com.agy.filemanager.service.DcDocProjectStepTypeService;
import java.util.List;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Zhang Fan
 * @date 2018\8\14 0014 14:07
 * @desc 项目阶段类型service实现层
 */

@Service
public class DcDocProjectStepTypeServiceImpl implements DcDocProjectStepTypeService {

    @Autowired
    DcDocProjectStepTypeDao dcDocProjectStepTypeDao;

    @Override
    public List<DcDocProjectStepType> getDcDocProjectStepType() {
        return dcDocProjectStepTypeDao.getDcDocProjectStepType();
    }

    @Override
    public List<TreeModel> selectTree() {
        return dcDocProjectStepTypeDao.selectTree();
    }

    @Override
    public Page selectTable(int pageNum, int pageSize) {

        Page page = PageHelper.startPage(pageNum,pageSize);
        List<DcDocProjectStepType> list = this.dcDocProjectStepTypeDao.selectTable();
        return page;
    }

}
